package vcp.gui.panels.parkingmanager;

import javax.swing.JButton;
import javax.swing.JPanel;


import javax.swing.JComboBox;
import javax.swing.border.TitledBorder;
import javax.swing.JLabel;


/**
 * Report management panel
 *
 */
public class PnlReportManagement extends JPanel{	
	
	private static final long serialVersionUID = 1494896212864520394L;
	@SuppressWarnings("rawtypes")
	private JComboBox comboRivon;
	private JButton btnCreate;
	@SuppressWarnings("rawtypes")
	private JComboBox comboYear;
	@SuppressWarnings("rawtypes")
	private JComboBox comboReportType;
	private JLabel lblType;
	private JLabel lblQuarter;
	private JLabel lblYear;

	public PnlReportManagement() {
		setBorder(new TitledBorder(null, "Reports", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setLayout(null);
		
		comboRivon = new JComboBox(getRivonim());
		comboRivon.setBounds(292, 37, 101, 22);
		add(comboRivon);
		
		btnCreate = new JButton("create");
		btnCreate.setBounds(284, 113, 109, 25);
		add(btnCreate); 
		
		comboYear = new JComboBox(getYears());
		comboYear.setBounds(292, 72, 101, 22);
		add(comboYear);
		
		String[] types = {"Orders","Complaints","Disabled parking"};
		
		comboReportType = new JComboBox(types);
		comboReportType.setBounds(70, 37, 106, 22);
		add(comboReportType);
		
		lblType = new JLabel("Type");
		lblType.setBounds(12, 40, 56, 16);
		add(lblType);
		
		lblQuarter = new JLabel("Quarter");
		lblQuarter.setBounds(224, 40, 56, 16);
		add(lblQuarter);
		
		lblYear = new JLabel("Year");
		lblYear.setBounds(234, 72, 56, 16);
		add(lblYear);
	}
	
	
	
	
	
	public JComboBox getComboRivon() {
		return comboRivon;
	}





	public void setComboRivon(JComboBox comboRivon) {
		this.comboRivon = comboRivon;
	}





	public JButton getBtnCreate() {
		return btnCreate;
	}





	public void setBtnCreate(JButton btnCreate) {
		this.btnCreate = btnCreate;
	}





	public JComboBox getComboYear() {
		return comboYear;
	}





	public void setComboYear(JComboBox comboYear) {
		this.comboYear = comboYear;
	}





	public JComboBox getComboReportType() {
		return comboReportType;
	}





	public void setComboReportType(JComboBox comboReportType) {
		this.comboReportType = comboReportType;
	}





	private Object[] getYears(){
		Object[] arr = new Object[12];
		for(int i=0;i<11;i++){
			arr[i] = i+2010;
		}
		return arr;		
	}
	
	private Object[] getRivonim(){
		Object[] arr = new Object[4];
		for(int i=0;i<4;i++){
			arr[i] = i+1;
		}
		return arr;		
	}
	
}
